#include "MLDataClustering.h"
#include "MLCommon.h"
_MYLABLIB_BEGIN

CMLDataClustering::CMLDataClustering()
{
	m_pDistFunc = NULL;
}

CMLDataClustering::~CMLDataClustering()
{
}

int CMLIncrementalDataClustering::DoClustering(const CMLDataSet& dataSet, std::vector<CMLDataCluster>& vClusters)
{
	int i;
	// Insert all data points
	for (i=0; i<dataSet.Count(); i++)
		Insert(dataSet.Get(i));
	// clustering
	return GetClusters(L"", vClusters);
}

_MYLABLIB_END
